﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportSaleOutD.aspx.cs"
    Inherits="sWarranty.WEB.ReportSaleOutD" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="../UC/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../CSS/table.css" />
    <link rel="stylesheet" type="text/css" href="../CSS/Menu.css" />
    <link href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" rel="stylesheet"
        type="text/css" />
    <script src="../JS/jquery-1.8.2.js" type="text/javascript"></script>
    <script src="../JS/jquery-ui.js" type="text/javascript"></script>
    <script src="../JS/Menu.js" type="text/javascript"></script>
    <link href="../JS/chosen-master/chosen/chosen.css" rel="stylesheet" type="text/css" />
    <script src="../JS/chosen-master/chosen/chosen.jquery.js" type="text/javascript"></script>
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <script src="../JS/weekly_calendar/weeklycalendar.js" type="text/javascript"></script>
    <link href="../JS/weekly_calendar/calendar.css" rel="stylesheet" type="text/css" />
    <script src="../JS/jquery.stickytableheaders.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#txtFromDate").attr('readOnly', 'true');
            $("#txtToDate").attr('readOnly', 'true');
            $("table").stickyTableHeaders();
        });
        buildWeeklyCalendar(1);
    </script>
    <style type="text/css">
        .style1
        {
            width: 176px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ksdjfl" runat="server">
    </asp:ScriptManager>
    <uc1:Header ID="Header1" runat="server" />
    <div class="Mid">
        <div class="Mid1">
            <div id="DataContent">
                <%-- <div>
                    Nội dung bên trái
                </div>--%>
                <div>
                    <div class="TitleTab">
                        <ul>
                            <li><a href="ReportSaleOutD.aspx" class="TitleTab_act">Daily</a></li>
                            <li><a href="ReportSaleOutW.aspx">Weekly</a></li>
                            <li><a href="ReportSaleOutM.aspx">Monthly</a></li>
                        </ul>
                    </div>
                    <!-- DataGrid Start -->
                    <div class="Search">
                        <table>
                            <tr>
                                <td style="background-color: #F7F7F7">
                                    Period :
                                </td>
                                <td>
                                    <asp:TextBox ID="txtFromDate" runat="server" Width="80px" Enabled="true"></asp:TextBox>
                                    <asp:TextBox ID="txtToDate" runat="server" Width="80px" Enabled="true"></asp:TextBox>
                                    <input type="button" value="..." onclick="w_displayCalendar('txtFromDate','txtToDate');" />
                                </td>
                                <td style='width: 10px'>
                                </td>
                                <td style="background-color: #F7F7F7">
                                    Product
                                </td>
                                <td class="style1">
                                    <asp:DropDownList ID="dropAu" runat="server" Width="100%" CssClass="chzn-select"
                                        data-placeholder="..All..">
                                    </asp:DropDownList>
                                </td>
                                <td style='width: 10px'>
                                </td>
                                <td style="background-color: #F7F7F7">
                                    REGION :
                                </td>
                                <td>
                                    <asp:DropDownList ID="dropRegion2" Width="100px" runat="server" CssClass="chzn-select">
                                        <asp:ListItem Value="00" Text="Select"></asp:ListItem>
                                        <asp:ListItem Value="01" Text="NORTH"></asp:ListItem>
                                        <asp:ListItem Value="02" Text="MIDDLE"></asp:ListItem>
                                        <asp:ListItem Value="03" Text="SOUNTH"></asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td style="background-color: #F7F7F7">
                                    Shop Code:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtShopCode" runat="server" Width="100%"></asp:TextBox>
                                </td>
                                <td style='width: 10px'>
                                </td>
                                <td style="background-color: #F7F7F7">
                                    Model:
                                </td>
                                <td class="style1">
                                    <asp:TextBox ID="txtModel" runat="server" Width="100%"></asp:TextBox>
                                </td>
                                <td style='width: 10px'>
                                </td>
                                <td style="background-color: #F7F7F7">
                                    </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    <asp:Button ID="btnExcel" runat="server" OnClick="btnExcel_Click" Width="80px" CssClass="button Float-right"
                                        Text="Export" />
                                    <asp:Button ID="btnFind" runat="server" CssClass="button Float-right" Width="80px"
                                        Text="Search" OnClick="btnFind_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="divScroll" style="height: 100%; overflow: auto;">
                        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" CellSpacing="0"
                            AutoGenerateColumns="false" OnColumnCreated="RadGrid1_ColumnCreated" CssClass="RadGridCustomClass"
                            GridLines="None" ShowGroupPanel="True" OnNeedDataSource="RadGrid1_NeedDataSource"
                            BorderWidth="1" OnGroupsChanging="RadGrid1_GroupsChanging" Skin="Office2007"
                            OnItemDataBound="RadGrid1_ItemDataBound">
                            <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">
                            </ClientSettings>
                            <MasterTableView ShowGroupFooter="true" AllowMultiColumnSorting="true">
                                <PagerStyle AlwaysVisible="True" />
                                <Columns>
                                    <telerik:GridBoundColumn DataField="REGION" HeaderText="REGION" SortExpression="REGION"
                                        UniqueName="REGION">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="PROVINCE" HeaderText="PROVINCE" SortExpression="PROVINCE"
                                        UniqueName="PROVINCE">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="SHOP_CODE" HeaderText="SHOP_CODE" SortExpression="SHOP_CODE"
                                        UniqueName="SHOP_CODE">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="SHOP_NAME" HeaderText="SHOP_NAME">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="PRODUCT" HeaderText="PRODUCT">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="MODEL" HeaderText="MODEL">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
                                        DataField="SUM" HeaderText="SUM" FooterText=" ">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
                                        DataField="MON" HeaderText="MON" FooterText=" ">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
                                        DataField="TUE" HeaderText="TUE" FooterText=" ">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
                                        DataField="WED" HeaderText="WED" FooterText=" ">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
                                        DataField="THU" HeaderText="THU" FooterText=" ">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
                                        DataField="FRI" HeaderText="FRI" FooterText=" ">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" DataField="SAT"
                                        HeaderText="SAT" FooterText=" ">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn  HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
                                        DataField="SUN" HeaderText="SUN" FooterText=" ">
                                    </telerik:GridBoundColumn>
                                </Columns>
                            </MasterTableView>
                            <GroupingSettings ShowUnGroupButton="true"></GroupingSettings>
                        </telerik:RadGrid>
                    </div>
                    <!-- DataGrid End -->
                </div>
            </div>
            <div class="Clear_both">
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(".chzn-select").chosen();
    </script>
    </form>
</body>
</html>
